package com.learn.designPatterns.structuralType.Decorator;

/**
 * @classname:
 * @Description:
 * @author: yfpu
 * @Date: 2018-10-30 11:38
 */
public class Client {

    public static void main(String[] args) {
        Beverage beverage = new HouseBlend();
        Beverage milk = new Milk(beverage);
        Beverage mocha = new Mocha(milk);
        System.out.println(mocha.cost());
    }
}
